Conversation
and try cpp-linter-action v3.0-rc0 branch
Cpp-Linter Report
|
keeps build artifacts in the build/ folder
There was a problem hiding this comment.
Cpp-linter Review
Used clang-format v17.0.6
Used clang-tidy v17.0.1
Only 8 out of 10 concerns fit within this pull request's diff.
Click here for a patch of fixes outside the diff
--- a/src/demo.hpp
+++ b/src/demo.hpp
@@ -3,2 +3,0 @@
-
-
@@ -14,19 +12,1 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-struct LongDiff
-{
+struct LongDiff {Have any feedback or feature suggestions? Share it here.
| /** This is a very ugly test code (doomed to fail linting) */ | ||
| #include "demo.hpp" |
There was a problem hiding this comment.
clang-tidy diagnostic(s)
- included header demo.hpp is not used directly [misc-include-cleaner]
| /** This is a very ugly test code (doomed to fail linting) */ | |
| #include "demo.hpp" | |
| #include <cstdio> |
| #include "demo.hpp" | ||
| #include <cstdio> | ||
| #include <cstddef> | ||
| #include <stdio.h> |
There was a problem hiding this comment.
clang-tidy diagnostic(s)
- inclusion of deprecated C++ header 'stdio.h'; consider using 'cstdio' instead [modernize-deprecated-headers]
| #include <stdio.h> | |
| auto main() -> int | |
| { |
|
|
||
| int main() | ||
| { | ||
| for (;;) | ||
| break; | ||
|
|
||
|
|
||
| int main(){ | ||
|
|
||
| for (;;) break; |
There was a problem hiding this comment.
clang-tidy diagnostic(s)
- use a trailing return type for this function [modernize-use-trailing-return-type]
- statement should be inside braces [readability-braces-around-statements]
| int main() | |
| { | |
| for (;;) | |
| break; | |
| int main(){ | |
| for (;;) break; | |
| for (;;) { | |
| break; | |
| } |
|
|
||
| return 0; | ||
| } | ||
|
|
||
|
|
||
|
|
There was a problem hiding this comment.
clang-tidy suggestion
| return 0; | |
| } | |
| return 0; | |
| } |
| for (;;) break; | ||
|
|
||
|
|
||
| printf("Hello world!\n"); |
There was a problem hiding this comment.
clang-tidy diagnostic
src/demo.cpp:13:5 warning: [cppcoreguidelines-pro-type-vararg]
do not call c-style vararg functions
13 | printf("Hello world!\n");
| ^| class Dummy { | ||
| char* useless; | ||
| int numb; |
There was a problem hiding this comment.
clang-tidy diagnostic(s)
- use default member initializer for 'useless' [cppcoreguidelines-use-default-member-init]
- use default member initializer for 'numb' [cppcoreguidelines-use-default-member-init]
| class Dummy { | |
| char* useless; | |
| int numb; | |
| char* useless { "\0" }; | |
| int numb { 0 }; | |
| Dummy() { } |
|
|
||
| public: |
There was a problem hiding this comment.
clang-tidy suggestion
| public: | |
| public: | |
| auto not_useful(char* str) -> void* { useless = str; } |
| struct LongDiff | ||
| { | ||
|
|
||
| long diff; |
There was a problem hiding this comment.
clang-tidy suggestion
Please remove the line(s)
- 34
There was a problem hiding this comment.
Cpp-linter Review
Used clang-format v17.0.6
Used clang-tidy v17.0.1
Only 8 out of 10 concerns fit within this pull request's diff.
8 suggestions were duplicates of previous reviews.
Click here for a patch of fixes outside the diff
--- a/src/demo.hpp
+++ b/src/demo.hpp
@@ -3,2 +3,0 @@
-
-
@@ -14,19 +12,1 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-struct LongDiff
-{
+struct LongDiff {Have any feedback or feature suggestions? Share it here.
Now with PR review suggestions unified (from both tools) and thread comments that boast available auto-fixes.